package com.kaizeli.website.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.apache.ibatis.type.JdbcType;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * 产值记录实体类
 */
@Data
@TableName("output_value")
public class OutputValueDO {
    
    @TableId(type = IdType.NONE)
    private Long id;
    
    /**
     * 员工ID
     */
    @TableField("employee_id")
    private Long employeeId;
    
    /**
     * 员工姓名
     */
    @TableField("employee_name")
    private String employeeName;
    
    /**
     * 员工编号
     */
    @TableField("employee_code")
    private String employeeCode;
    
    /**
     * 员工类型
     */
    @TableField("employee_type")
    private String employeeType;
    
    /**
     * 项目ID
     */
    @TableField("project_id")
    private Long projectId;
    
    /**
     * 项目编号
     */
    @TableField("project_code")
    private String projectCode;
    
    /**
     * 项目名称
     */
    @TableField("project_name")
    private String projectName;
    
    /**
     * 业务类型
     */
    @TableField("business_type")
    private String businessType;
    
    /**
     * 账期
     */
    @TableField("account_period")
    private String accountPeriod;
    
    /**
     * 项目经理
     */
    @TableField("project_manager")
    private String projectManager;
    
    /**
     * 部门
     */
    @TableField("department")
    private String department;
    
    /**
     * 项目地点
     */
    @TableField("project_location")
    private String projectLocation;
    
    /**
     * 项目入职时间
     */
    @TableField("join_date")
    private LocalDate joinDate;
    
    /**
     * 项目参与开始时间
     */
    @TableField("project_join_date")
    private LocalDate projectJoinDate;
    
    /**
     * 项目参与结束时间
     */
    @TableField("project_leave_date")
    private LocalDate projectLeaveDate;
    
    /**
     * 离职时间
     */
    @TableField("resignation_date")
    private LocalDate resignationDate;
    
    /**
     * 是否有订单
     */
    @TableField("has_order")
    private Boolean hasOrder;
    
    /**
     * 单价（含税）
     */
    @TableField("unit_price_with_tax")
    private BigDecimal unitPriceWithTax;
    
    /**
     * 工作时长
     */
    @TableField("work_hours")
    private BigDecimal workHours;
    
    /**
     * 扣减金额
     */
    @TableField("deduction")
    private BigDecimal deduction;
    
    /**
     * 当月产值（含税）
     */
    @TableField("monthly_output")
    private BigDecimal monthlyOutput;
    
    /**
     * 当月产值（不含税）
     */
    @TableField("monthly_output_no_tax")
    private BigDecimal monthlyOutputNoTax;
    
    /**
     * 工资成本
     */
    @TableField("salary_cost")
    private BigDecimal salaryCost;
    
    /**
     * 企业社保公积金
     */
    @TableField("social_insurance")
    private BigDecimal socialInsurance;
    
    /**
     * 其他费用
     */
    @TableField("other_fees")
    private BigDecimal otherFees;
    
    /**
     * 商业险
     */
    @TableField("commercial_insurance")
    private BigDecimal commercialInsurance;
    
    /**
     * 设备成本
     */
    @TableField("equipment_cost")
    private BigDecimal equipmentCost;
    
    /**
     * 补偿金额
     */
    @TableField("compensation_amount")
    private BigDecimal compensationAmount;
    
    /**
     * 总成本
     */
    @TableField("total_cost")
    private BigDecimal totalCost;
    
    /**
     * 成本率
     */
    @TableField("cost_rate")
    private BigDecimal costRate;
    
    /**
     * 审核状态
     */
    @TableField("approval_status")
    private String approvalStatus;
    
    /**
     * 审核人ID
     */
    @TableField("approver_id")
    private Long approverId;
    
    /**
     * 审核人姓名
     */
    @TableField("approver_name")
    private String approverName;
    
    /**
     * 审核时间
     */
    @TableField(value = "approval_time", jdbcType = JdbcType.TIMESTAMP)
    private LocalDateTime approvalTime;
    
    /**
     * 审核备注
     */
    @TableField("approval_remark")
    private String approvalRemark;
    
    /**
     * 备注
     */
    @TableField("remarks")
    private String remarks;
    
    /**
     * 创建时间
     */
    @TableField(value = "create_time", jdbcType = JdbcType.TIMESTAMP)
    private LocalDateTime createTime;
    
    /**
     * 更新时间
     */
    @TableField(value = "update_time", jdbcType = JdbcType.TIMESTAMP)
    private LocalDateTime updateTime;
    
    /**
     * 创建人ID
     */
    @TableField("created_by")
    private Long createdBy;
}

